export function scrollToDom(selector) {
  try {
    const dom = document.querySelector(selector);
    dom.scrollIntoView({
      behavior: 'smooth',
    });
  } catch (error) {
    console.log(error);
  }
}
